package com.vegetable.modules.mapper.inbound;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.vegetable.modules.entity.baseData.AccountDetails;
import com.vegetable.modules.entity.finance.po.PackCanPayPO;
import com.vegetable.modules.entity.inbound.PackDelivery;
import com.vegetable.modules.entity.inbound.po.PackDeliverySequencePO;
import com.vegetable.modules.entity.inbound.vo.PackDeliverySequenceVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 加工打包 Mapper 接口
 * </p>
 *
 * @author wangruijie
 * @since 2024-03-21
 */
@Mapper
public interface PackDeliveryMapper extends BaseMapper<PackDelivery> {

    /**
     * 生成流水单号
     * @return
     */
    String getNextCode();

    IPage<PackDeliverySequenceVO> statisticsPackDelivery(IPage page, PackDeliverySequencePO po);

    List<AccountDetails> canPaymentList(PackCanPayPO po);
}
